package com.xidian.zhiancloud.model.exam;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xidian.zhiancloud.qo.BaseReqQuery;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 培训内容对象 t_train_content
 * 
 * @author zhouweitao
 * @date 2021-03-16
 */
public class TrainContent extends BaseReqQuery
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 公司id */
    private Long companyId;

    /** 培训计划id(培训计划可对应多个培训内容) */
    private Long trainPlanId;

    /** 课件名称 */
    private String examFileName;

    /** 授课人 */
    private String teacher;

    /** 培训开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date trainStartTime;

    /** 培训结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date trainEndTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setTrainPlanId(Long trainPlanId) 
    {
        this.trainPlanId = trainPlanId;
    }

    public Long getTrainPlanId() 
    {
        return trainPlanId;
    }
    public void setExamFileName(String examFileName) 
    {
        this.examFileName = examFileName;
    }

    public String getExamFileName() 
    {
        return examFileName;
    }
    public void setTeacher(String teacher) 
    {
        this.teacher = teacher;
    }

    public String getTeacher() 
    {
        return teacher;
    }
    public void setTrainStartTime(Date trainStartTime) 
    {
        this.trainStartTime = trainStartTime;
    }

    public Date getTrainStartTime() 
    {
        return trainStartTime;
    }
    public void setTrainEndTime(Date trainEndTime) 
    {
        this.trainEndTime = trainEndTime;
    }

    public Date getTrainEndTime() 
    {
        return trainEndTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("companyId", getCompanyId())
            .append("trainPlanId", getTrainPlanId())
            .append("examFileName", getExamFileName())
            .append("teacher", getTeacher())
            .append("trainStartTime", getTrainStartTime())
            .append("trainEndTime", getTrainEndTime())
            .toString();
    }
}
